package routers

import (
	"github.com/Jttt/beego_api/controllers"
	"github.com/astaxie/beego"
)

func init() {

	//beego.Router("/", &controllers.BlogController{}, "*:Home")
	//beego.Router("/home", &controllers.BlogController{}, "*:Home")
	//beego.Router("/article", &controllers.BlogController{}, "*:Article")
	//beego.Router("/detail", &controllers.BlogController{}, "*:Detail")
	//beego.Router("/about", &controllers.BlogController{}, "*:About")
	//beego.Router("/timeline", &controllers.BlogController{}, "*:Timeline")
	//beego.Router("/resource", &controllers.BlogController{}, "*:Resource")
	//beego.Router("/comment", &controllers.BlogController{}, "post:Comment")

	//api接口设置路由 只能使用api方法
	beego.Router("/", &controllers.ApiController{}, "*:Home")
	beego.Router("/acc-status", &controllers.ApiController{}, "post:Status")
	beego.Router("/zhuan", &controllers.ApiController{}, "post:Zhuan")
	beego.Router("/mail", &controllers.ApiController{}, "post:Mail")
	beego.Router("/ip", &controllers.ApiController{}, "post:Ip")
	beego.Router("/acc-status-limit", &controllers.ApiUserStatusController{}, "post:StatusLimit")
	beego.Router("/acc-status-limit1", &controllers.ApiUserStatusController{}, "post:StatusLimit1")

	beego.AutoRouter(&controllers.AdminController{})
}
